package com.dao;

import com.model._do.DeSignDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("deSignUpDAO")
public interface DeSignUpDAO {

    public void addNewDeSign(DeSignDO deSign);

    public void deleteDeSign(DeSignDO deSign);

    public void agreeDeSignById(@Param("id") String id);

    public int getDeSignNumByToId(@Param("toId") String toId);

    public void confirmDeSign(DeSignDO deSign);

    public DeSignDO getDeSignById(@Param("id") String id);

    public DeSignDO getDeSignByFromToId(@Param("fromId") String fromId,@Param("toId") String toId);

    public List<DeSignDO> getDeSignListByToId(@Param("toId") String toId);
}
